<h1>Listing collection_ratings</h1>

<table>
  <tr>
    <th>Collection</th>
    <th>User</th>
    <th>Rate</th>
    <th>Comment</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @collection_ratings.each do |collection_rating| %>
  <tr>
    <td><%= collection_rating.collection %></td>
    <td><%= collection_rating.user %></td>
    <td><%= collection_rating.rate %></td>
    <td><%= collection_rating.comment %></td>
    <td><%= link_to 'Show', collection_rating %></td>
    <td><%= link_to 'Edit', edit_collection_rating_path(collection_rating) %></td>
    <td><%= link_to 'Destroy', collection_rating, :method => :delete, :data => { :confirm => 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Collection rating', new_collection_rating_path %>
